$(document).ready(function() {
	/*
	 * $("#record").click(function() { $.post("jsp/empproduct.jsp",
	 * function(response) { $("#rightside").html(response); }); });
	 */
	/*
	 * $("#employee").click(function() { $.post("employeeAction!list",
	 * function(response) { $("#rightside").html(response); }); });
	 */

});

function empList() {
	$("#currentPage").val("employee");
	$.post("employeeAction!list", function(response) {
		$("#rightside").html(response);
	});
}

function record() {
	$("#currentPage").val("empProduct");
	$.post("empProductAction!list", function(response) {
		$("#rightside").html(response);
	});
}

function salaryRecord() {
	$("#currentPage").val("salary");
	$.post("salaryAction!list", function(response) {
		$("#rightside").html(response);
	});
}
function productList() {
	$("#currentPage").val("product");
	$.post("productAction!list", function(response) {
		$("#rightside").html(response);
	});
}

function recordinput() {
	$.post("employeeAction!add", function(response) {
		$("#rightside").html(response);
	});
}
function employeeinput() {
	$.post("employeeAction!add", function(response) {
		$("#rightside").html(response);
	});
}

function productinput() {
	$.post("productAction!add", function(response) {
		$("#rightside").html(response);
	});
}

function empproinput() {
	$.post("empProductAction!add", function(response) {
		$("#rightside").html(response);
	});
}

function salaryinput(){
	$.post("salaryAction!add", function(response) {
		$("#rightside").html(response);
	});
}

function searchall() {
	if ($("#currentPage").val() !="main") {
		$.post($("#currentPage").val()+"Action!search",{kw:$("#kw").val()} ,function(response) {
			$("#rightside").html(response);
		});
	}
}